home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1995 March / Macworld CD-ROM (March 1995).cdr / Demos / Wrath of the Gods / 33AM1 / 00001.ls next >
Encoding:
Text File  |  1994-07-13  |  4.2 KB  |  288 lines

  1. on setLocal
  2. end
  3.  
  4. on killLocal
  5. end
  6.  
  7. on OrSend
  8.   global currentGems, firstOr, o33a, orCount
  9.   if currentGems = 0 then
  10.     if firstOr = 0 then
  11.       set firstOr to 1
  12.       goOr("oQ6")
  13.     else
  14.       if firstOr = 1 then
  15.         goOr("oQ5")
  16.       end if
  17.     end if
  18.   else
  19.     if currentGems > 0 then
  20.       if firstOr = 0 then
  21.         set firstOr to 1
  22.         goOr("oQ6")
  23.       else
  24.         if firstOr = 1 then
  25.           if o33a = 0 then
  26.             if orCount = 0 then
  27.               set orCount to 1
  28.               goOr("oQ1")
  29.             else
  30.               if orCount = 1 then
  31.                 set orCount to 2
  32.                 goOr("oQ2")
  33.               else
  34.                 if orCount = 2 then
  35.                   set orCount to 0
  36.                   goOr("oQ3")
  37.                 end if
  38.               end if
  39.             end if
  40.           else
  41.             if o33a = 1 then
  42.               goOr("endO")
  43.             end if
  44.           end if
  45.         end if
  46.       end if
  47.     end if
  48.   end if
  49. end
  50.  
  51. on hintSet
  52.   global o33a
  53.   puppetSprite(8, 1)
  54.   puppetSprite(9, 1)
  55.   puppetSprite(10, 1)
  56.   if o33a = 1 then
  57.     set the castNum of sprite 8 to the number of cast "hint1"
  58.   end if
  59. end
  60.  
  61. on killOrPup
  62.   puppetSprite(8, 0)
  63.   puppetSprite(9, 0)
  64.   puppetSprite(10, 0)
  65. end
  66.  
  67. on hint
  68.   global o33a
  69.   if o33a = 0 then
  70.     doSound("freeHint")
  71.     set o33a to 1
  72.     set the castNum of sprite 8 to the number of cast "hint1"
  73.   end if
  74. end
  75.  
  76. on upArrow
  77. end
  78.  
  79. on downArrow
  80. end
  81.  
  82. on bk
  83.   global mode
  84.   if mode = 3 then
  85.     lookitem("Looks like Greece")
  86.   end if
  87. end
  88.  
  89. on you
  90.   global mode
  91.   if mode = 3 then
  92.     nothing()
  93.   end if
  94. end
  95.  
  96. on e1
  97.   global mode
  98.   if mode = 0 then
  99.     go("ex e")
  100.   else
  101.     if mode = 3 then
  102.       lookitem("That way goes east")
  103.     end if
  104.   end if
  105. end
  106.  
  107. on ce1
  108.   go("in w", "32AM1")
  109. end
  110.  
  111. on e2
  112.   global mode, cont, die33a
  113.   if (mode = 0) and (die33a < 3) then
  114.     go("e*king")
  115.   else
  116.     if (mode = 2) and (die33a < 3) then
  117.       set cont to 1
  118.       go("e*king")
  119.     else
  120.       if mode = 3 then
  121.         lookitem("Looks like King Ae√´tes")
  122.       end if
  123.     end if
  124.   end if
  125. end
  126.  
  127. on ce2
  128.   global cont
  129.   if cont = 1 then
  130.     set cont to 0
  131.     go("Q1")
  132.   else
  133.     go("at king")
  134.   end if
  135. end
  136.  
  137. on e2.1
  138.   global mode, die33a
  139.   if (mode = 0) and (die33a < 3) then
  140.     go("e*king")
  141.   else
  142.     if mode = 3 then
  143.       bk()
  144.     end if
  145.   end if
  146. end
  147.  
  148. on e3
  149.   global mode
  150.   if mode = 0 then
  151.     go("e*n")
  152.   else
  153.     if mode = 3 then
  154.       lookitem("That way goes into the forest")
  155.     end if
  156.   end if
  157. end
  158.  
  159. on ce3
  160.   global die33a
  161.   if die33a < 3 then
  162.     go(1, "33AM2")
  163.   else
  164.     if die33a = 3 then
  165.       go("in w YdYf", "33AM2")
  166.     else
  167.       if die33a = 4 then
  168.         go("in w YdNf", "33AM2")
  169.       end if
  170.     end if
  171.   end if
  172. end
  173.  
  174. on e3.1
  175.   global mode
  176.   if mode = 0 then
  177.     go("e*n")
  178.   else
  179.     if mode = 3 then
  180.       lookitem("Looks like a forest")
  181.     end if
  182.   end if
  183. end
  184.  
  185. on k1
  186.   global mode
  187.   if mode = 0 then
  188.     go("king*e")
  189.   else
  190.     if mode = 3 then
  191.       lookitem("That way goes east")
  192.     end if
  193.   end if
  194. end
  195.  
  196. on k2
  197.   global mode
  198.   if mode = 2 then
  199.     go("Q1")
  200.   else
  201.     if mode = 3 then
  202.       lookitem("Looks like King Ae√´tes")
  203.     end if
  204.   end if
  205. end
  206.  
  207. on k3
  208.   global mode
  209.   if mode = 0 then
  210.     go("king*n")
  211.   else
  212.     if mode = 3 then
  213.       lookitem("That way goes into the forest")
  214.     end if
  215.   end if
  216. end
  217.  
  218. on k3.1
  219.   global mode
  220.   if mode = 0 then
  221.     go("king*n")
  222.   else
  223.     if mode = 3 then
  224.       lookitem("Looks like a forest")
  225.     end if
  226.   end if
  227. end
  228.  
  229. on n1
  230.   global mode
  231.   if mode = 0 then
  232.     go("n*e")
  233.   else
  234.     if mode = 3 then
  235.       lookitem("That way goes east")
  236.     end if
  237.   end if
  238. end
  239.  
  240. on n2
  241.   global mode, cont, die33a
  242.   if (mode = 0) and (die33a < 3) then
  243.     go("n*king")
  244.   else
  245.     if (mode = 2) and (die33a < 3) then
  246.       set cont to 1
  247.       go("n*king")
  248.     else
  249.       if mode = 3 then
  250.         lookitem("Looks like King Ae√´tes")
  251.       end if
  252.     end if
  253.   end if
  254. end
  255.  
  256. on n2.1
  257.   global mode, die33a
  258.   if (mode = 0) and (die33a < 3) then
  259.     go("n*king")
  260.   else
  261.     if mode = 3 then
  262.       bk()
  263.     end if
  264.   end if
  265. end
  266.  
  267. on n3
  268.   global mode
  269.   if mode = 0 then
  270.     go("ex n")
  271.   else
  272.     if mode = 3 then
  273.       lookitem("That way goes into the forest")
  274.     end if
  275.   end if
  276. end
  277.  
  278. on n3.1
  279.   global mode
  280.   if mode = 0 then
  281.     go("ex n")
  282.   else
  283.     if mode = 3 then
  284.       lookitem("Looks like a forest")
  285.     end if
  286.   end if
  287. end
  288.